<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="com.pengtu.security.SpringSecurityUtils"%>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="nav" content="0" />
<meta name="acc" content="1-0" />
<title>监督人员列表</title>
<script type="text/javascript">
	function batchsave(){
		var url = "${ctx}/business/appl/superviser_batch.action?projectId=" + encodeURI('${param.projectId}'); 
		mm = showDialogWindow(url);
		if(mm){
			window.location.reload();
		}
	}
</script>
</head>
<body>
	<div id="heading" class="staff">
		<h6>监督人员管理</h6>
	</div>
	<div id="message">
		<s:actionmessage theme="custom" cssClass="success" />
	</div>
	<form
		action="${ctx}/business/appl/superviser!info.action"
		id="mainForm" class="yform" method="get">
		<input type="hidden" name="filter_LIKES_projectInfo.id"
			id="filter_LIKES_projectInfo.id"
			value="${param['filter_LIKES_projectId'] }" />
		<div id="filter">
			<ul>
				<li>姓名：<input type="text" name="filter_LIKES_user.name"
					value="${param['filter_LIKES_user.name']}" /></li>
			</ul>
			<div class="type-button">
				<input type="button" value="查询" onclick="search();" class='search' />
			</div>
		</div>
		<div id="content">
			<table>
				<tr>
					<th>序号</th>
					<th>项目名称</th>
					<th>姓名</th>
					<th>职责</th>
					<th>开始时间</th>
					<th>结束时间</th>
					<th>操作</th>
				</tr>
				<c:forEach items="${page.result }" var="superviser"
					varStatus="state">
					<tr>
						<td>${state.index+page.first }</td>
						<td>${superviser.projectInfo.projName }</td>
						<td>${superviser.user.name }</td>
						<td><pt:code category="3066" code="${superviser.duty }"></pt:code>
						</td>
						<td><fmt:formatDate value="${superviser.startDate }"
								pattern="yyyy-MM-dd" /></td>
						<td><fmt:formatDate value="${superviser.endDate }"
								pattern="yyyy-MM-dd" /></td>
						<td><a
							href="${ctx }/business/appl/superviser!view.action?id=${superviser.id}&projectId=${superviser.projectInfo.id}">编辑</a>
							<a href="${ctx}/business/appl/superviser!delete.action?id=${superviser.id}&projectId=${superviser.projectInfo.id}">删除</a>
						</td>
					</tr>
				</c:forEach>
			</table>
		</div>
		<jsp:include page="/common/page.jsp" flush="true" />
			<div style="display: none">
			
			<input  type="text" name="projectId" value="${param.projectId }"/>
			<input  type="text" name="decorator" value="${param.decorator }"/>
			<input  type="text" name="confirm" value="${param.confirm}"/>
			<input  type="text" name="acc" value="${param.acc}"/>
		</div>
		<div class="type-button">
		<a href="${ctx}/business/appl/superviser!look.action?projectId=${param.projectId}&decorator=${param.decorator}&confirm=${param.confirm }&acc=${param.acc}">指定监督组</a>
		<a href="${ctx}/business/appl/superviser!view.action?projectId=${param['projectId']}&decorator=${param.decorator}&confirm=${param.confirm }&acc=${param.acc} ">新增监督成员</a>
		</div>
	</form>
</body>
</html>